package store.aixx.jwt.demo.common;

import lombok.Getter;

/**
 * @author yukai
 * @since 2021年12月11日 1:36
 */
@Getter
public enum ResponseErrorStatusEnum implements IErrorStatus {
    LOGIN_FAILURE("login.username.or.password.error", "B0001"),
    LOGIN_FAILURE_EXPIRED("login.account.expired", "B0002"),
    LOGIN_FAILURE_ACCOUNT_DISABLE("login.account.disable", "B0003"),
    LOGIN_FAILURE_ACCOUNT_LOCK("login.account.lock", "B0004"),
    LOGIN_FAILURE_PASSWORD_EXPIRED("login.password.expired", "B0005"),
    NEED_LOGIN("need.login", "B0006"),
    TOKEN_CAN_NOT_USE("token.cannot.use.or.expired", "B0007"),
    FORBIDDEN("permission.forbidden", "B0008");

    private String message;

    private String code;

    ResponseErrorStatusEnum(String message, String code) {
        this.message = message;
        this.code = code;
    }
}
